/*
 *
 * Created on: 22.10.2012
 *
 * hostInfo.cpp
 * This file is part of KOBUS
 * 
 * Copyright (C) 2012 - Ivan Penkin, MIPT
 * grek.penkin@gmail.com
 *
 * KOBUS is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * KOBUS is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with KOBUS; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, 
 * Boston, MA  02110-1301  USA
 *  
 */


#include <hostInfo.h>

using namespace kobus;


HostInfo::HostInfo(QObject * parent)
    :QSerializable(parent) {

}


HostInfo::HostInfo(quint16 type, quint32 flags, quint64 id,
        const QString & iface,
        const QString & mac,
        const QString & remoteId,
        const QString & circuitId, quint16 vlan,
        const QHostAddress & ip, QObject * parent)
    :QSerializable(parent),
     type(type),
     flags(flags),
     id(id),
     iface(iface),
     mac(mac),
     remoteId(remoteId),
     circuitId(circuitId),
     vlan(vlan),
     ip(ip) {

}

HostInfo::~HostInfo() {

}


quint16 HostInfo::getType() const {

  return type;
}


quint32 HostInfo::getFlags() const {

  return flags;
}

quint64 HostInfo::getId() const {

  return id;
}


const QString & HostInfo::getIface() const {

  return iface;
}


const QString & HostInfo::getMac() const {

  return mac;
}


const QString & HostInfo::getRemoteId() const {

  return remoteId;
}


const QString & HostInfo::getCircuitId() const {

  return circuitId;
}


quint16 HostInfo::getVlan() const {

  return vlan;
}


const QHostAddress & HostInfo::getIp() const {

  return ip;
}


void HostInfo::setType(quint16 _type) {

  type = _type;
}


void HostInfo::setId(quint64 _id) {

  id = _id;
}


void HostInfo::setFlags(quint32 _flags) {

  flags = _flags;
}

void HostInfo::setIface(const QString & _iface) {

  iface = _iface;
}


void HostInfo::setMac(const QString & _mac) {

  mac = _mac;
}


void HostInfo::setRemoteId(const QString & _remoteId) {

  remoteId = _remoteId;
}


void HostInfo::setCircuitId(const QString & _circuitId) {

  circuitId = _circuitId;
}


void HostInfo::setVlan(quint16 _vlan) {

  vlan = _vlan;
}


void HostInfo::setIp(const QHostAddress & _ip) {

  ip = _ip;
}
